<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
    <script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script src="http://cdn.static.runoob.com/libs/angular.js/1.4.6/angular.min.js"></script>
</head>
<body>
<div class="container">
    <div class="row">
        <div class="panel panel-primary">
            <div class="panel-heading">
                <div class="panel-title">anjularjs 学习</div>
            </div>
            <div class="panel-body">
                <div class="row">
                    <p>
                        AngularJS 通过 ng-directives 扩展了 HTML。<br>
                        ng-app 指令定义一个 AngularJS 应用程序。<br>
                        ng-model 指令把元素值（比如输入域的值）绑定到应用程序。<br>
                        ng-bind 指令把应用程序数据绑定到 HTML 视图。<br>
                    </p>
                </div>
                <div class="row" ng-app="">
                    <p>姓名：<input type="text" ng-model="name"></p>
                    <h1>您输入的姓名为：{{name}}</h1>
                </div>
                <div class="row">
                    <div ng-app="" ng-init="firstName='John'">

                        <p>姓名为 <span ng-bind="firstName"></span></p>

                    </div>
                </div>
            </div>

        </div>
    </div>
</div>
</body>
</html>